﻿<ul id="main_menu">
	<li id="yp_logo">
		<a href="javascript:void(0);"><img src="gui/yp_hand.gif" alt="" /></a>
		<ul>
			<li><a href="javascript:void(0)" onClick="showAboutYP();">O firmi...</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Korisnik</a>
		<ul>
			<li><span>{{$user}} [{{$user_level}}]</span></li>
			<li><a href="javascript:void(0)" onclick="logout();">logout</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Komitenti</a>
		<ul>
			<li class="sub">
				<a class="search" href="javascript:void(0)">Pretraga</a>
				<ul>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'ime',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Po imenu:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_sifra; if(k.value.length){searchKomitent(this,'sifra',k.value)}else{k.focus();k.select()}">
							<label for="search_sifra">Po šifri:</label><input name="search_sifra" id="search_sifra" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
				</ul>
			</li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php','setContent')">Pregled</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Ugovori</a>
		<ul>
			<li><a href="javascript:void(0)" onClick="LoadRSDoc('ugovori.php?a=izdaj','setContent')">Izdavanje</a></li>
			<li class="sub">
				<a href="javascript:void(0)" onClick="LoadRSDoc('ugovori.php?a=ulaz','setContent')">Ulaz</a>
				<ul>
					<li><a href="javascript:void(0)" onClick="LoadRSDoc('ugovori.php?a=ulaz','setContent')">Ugovora</a></li>
					<li><a href="javascript:void(0)" onClick="LoadRSDoc('ugovori.php?a=ulaz_mat','setContent')">Materijala</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)">Izveštaji</a>
				<ul>
					<li><a href="javascript:void(0)" onClick="LoadRSDoc('ugovori.php?a=report&t=1','setContent')">Izdati ugovori</a></li>
					<li><a href="javascript:void(0)" onClick="LoadRSDoc('ugovori.php?a=report&t=2','setContent')">Ušli ugovori</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=report&t=5','setContent')">Ušli materijali</a></li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" action="javascript:void(0)" onsubmit="var rep = this.report_radnik_name; if(rep.value.length){LoadRSDoc('ugovori.php?a=report&t=3&radnik='+rep.value,'ypAjaxForm');}else{rep.focus();} " method="get">
							<label for="report_radnik_name">Radnik:</label>
							<input type="text" name="report_radnik_name" />
							<input type="submit" value="go" class="submit" />
						</form>
					</li>
				</ul>
			</li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Radnici</a>
		<ul>
			<li {{$off}}><a class="new" href="javascript:void(0);" onclick="LoadRSDoc('radnici.php?a=new','setContent')">Novi...</a></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('radnici.php','setContent');">Pregled</a></li>
		</ul>
	</li>
	<li {{$off}}>
		<a href="javascript:void(0)">Rokovnik</a>
		<ul>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php','setContent')">Telemarketing</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Opcije</a>
		<ul>
			{{$options}}
			<li><a href="javascript:void(0);" onClick="window.print();">Štampaj...</a></li>
		</ul>
	</li>
	<li id="history_nav">
		<input type="button" id="history_back" onclick="historyBack()" value="<<" title="nazad" disabled="disabled" />
		<input type="button" onclick="historyShow()" value="history" style="display:none;" />
		<input type="button" id="history_forward" onclick="historyForward()" value=">>" title="napred" disabled="disabled" />
	</li>
</ul>